package main

import "fmt"

type student struct {
	name  string
	age   int
	score int
}

//add method to student
func (s student) showName() {
	fmt.Println(s.name)
}

func main() {
	st1 := student{
		name:  "zhangsan",
		age:   10,
		score: 90,
	}
	st1.showName()
}
